<tagLib name="html" />

<include file="Public:header" />

<div class="container" id="cpcontainer">
    <div class="itemtitle">
        <h3>{$Think.lang.link.manage_link}</h3>
        <ul class="tab1">
            <li class="current"><a href="__URL__/linkList"><span>{$Think.lang.link.all_link}</span></a></li>
            <li><a href="__URL__/addLink"><span>{$Think.lang.link.add_link}</span></a></li>
        </ul>
    </div>
    <form name="cpform" method="post" action="__URL__/manageLink" id="cpform">
    <input type="hidden" name="op" value="save" />
    <table class="tb tb2 fixpadding">
        <tr>
            <th>{$Think.lang.name}</th>
            <th>{$Think.lang.url}</th>
            <th>{$Think.lang.link.logo}</th>
            <th>{$Think.lang.display_order}</th>
            <th>{$Think.lang.visible}</th>
            <th>{$Think.lang.actions}</th>
            <th width="10%">{$Think.lang.mark}</th>
        </tr>
        <volist name="linkList" id="vo">
        <tr class="item">
            <td>{$vo.name}</td>
            <td><a href="{$vo.url}" target="_blank">{$vo.url}</a></td>
            <td><notempty name="vo.logo"><img src="{$vo.logo}" alt="{$vo.name}" /><else/>{$Think.lang.none}</notempty></td>
            <td class="td25"><input type="text" class="txt" name="display_order[{$vo.link_id}]" value="{$vo.display_order}" /></td>
            <td><input type="checkbox" class="checkbox" name="status[{$vo.link_id}]" value="1" <eq name="vo.status" value="1">checked="checked"</eq> /></td>
            <td><a class="act" href="__URL__/editLink/link_id/{$vo.link_id}">{$Think.lang.edit}</a></td>
            <td><input type="checkbox" class="checkbox" name="mods[]" value="{$vo.link_id}" /></td>
        </tr>
        </volist>
        <tr class="nobg">
            <td colspan="6">
                <div class="cuspages left"><div class="pages">{$pagination}</div></div>
                <div class="fixsel right"><input type="submit" class="btn" name="submit" value="{$Think.lang.submit}" /></div>
            </td>
            <td><input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll('prefix', this.form, 'mods')" /><label for="chkall">{$Think.lang.delete}?</label></td>
        </tr>
    </table>
    </form>
</div>

<include file="Public:footer" />
